package com.xwt.pattern.singleton;

/**
 * Author:  Steven Xiao
 * Description:大臣
 * Date:  2016/3/10
 * Time:  16:56
 */
public class Minister {

    public static void main(String[] args){
//        Emperor emperor1 = Emperor.getInstance();
//        emperor1.emperorInfo();
//
//        Emperor emperor2 = Emperor.getInstance();
//        emperor2.emperorInfo();
//
//        Emperor emperor3 = Emperor.getInstance();
//        emperor3.emperorInfo();
        SingletonPattern s1 = SingletonPattern.getInstance();
        s1.emperorInfo();

        SingletonPattern s2 = SingletonPattern.getInstance();
        s2.emperorInfo();

        SingletonPattern s3 = SingletonPattern.getInstance();
        s3.emperorInfo();
    }

}
